<%@ page import="sy.pageModel.BaseEntity" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016-06-29
  Time: 11:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script type="text/javascript">
    $(function(){
        $.ajax({
            url: "${pageContext.request.contextPath}/partnerController/find_dept_type.action",    //请求的url地址
            async: false, //请求是否异步，默认为异步，这也是ajax重要特性
            data: {},    //参数值
            type: "POST",   //请求方式
            success: function(data) {
                var data=JSON.parse(data);
                $("#dept_type_1").append(data["obj"])
                //请求成功时处理
            }
        });
    })
</script>
<div align="center">
    <form id="admin_partnerEdit_editForm" method="post">
        <table class="tableForm">
            <tr>
                <th>单位编号</th>
                <td><input name="id" class="easyui-validatebox" data-options="required:true"  readonly/></td>
                <th>单位类型</th>
                <td><select name="deptTypeId" class="easyui-validatebox" id="dept_type_1" style="width: 100%"></select></td>
            </tr>
            <tr>
                <th>单位名称</th>
                <td><input name="name" class="easyui-validatebox" data-options="required:true"/></td>
                <th>单位地址</th>
                <td><input name="address" class="easyui-validatebox"data-options="required:true" /></td>
            </tr>
            <tr>
                <th>单位网址</th>
                <td><input name="url" class="easyui-validatebox"/></td>
                <th>单位logo</th>
                <td>
                    <input type="hidden" value="add" id="js-val">
                    <jsp:include page="file.jsp"></jsp:include>
                </td>
            </tr>
            <tr>
                <th>单位排序</th>
                <td><input name="order" class="easyui-validatebox"/></td>
                <th>备用网址</th>
                <td><input name="remarkUrl" class="easyui-validatebox" /></td>
            </tr>
            <tr>
                <th>是否显示</th>
                <td>
                   <jsp:include page="is_show.jsp"></jsp:include>
                </td>
            </tr>
        </table>
    </form>
</div>
